package solverLogic;

import java.util.ArrayList;
import java.util.List;

class Tupel<T> {

	private List<Coordinates> coordinates;
	private List<T> elements;

	public Tupel() {
		this.coordinates = new ArrayList<Coordinates>();
		this.elements = new ArrayList<T>();
	}

	public void addCoordinates(Coordinates coordinates) {
		if (coordinates == null) {
			throw new NullPointerException("Coordinates must not be null.");
		}
		this.coordinates.add(coordinates);
	}

	public void addElement(T t) {
		if (t == null) {
			throw new NullPointerException("Element must not be null.");
		}
		this.elements.add(t);
	}

	public List<Coordinates> getCoordinates() {
		return this.coordinates;
	}

	public List<T> getElements() {
		return this.elements;
	}

	public int tupelSize() {
		return this.elements.size();
	}
}
